{#php}
class {#prefix}_View_Main extends Amfw_View
{
	public function _initNavbar() {
		$task = Amfw_Request::getv('task',null);
		$navbar = array();
		switch($task) {
			default	:
				$navbar[] = Amfw_Html::navbarItem('Home',Amfw_Router::route('index.php?controller=main'),true);
				$navbar[] = Amfw_Html::navbarItem('A Page',Amfw_Router::route('index.php?controller=main'));
				$navbar[] = Amfw_Html::navbarItem('Another Page',Amfw_Router::route('index.php?controller=main'));
				break;
		}
		// Add the navbar to the document
		$doc = Amfw_Factory::getDocument();
		$doc->setNavbarItems($navbar);
	}
	
	public function _initDispl()
	{
		$task = Amfw_Request::getv('task',null);
		
		switch($task) {
			default	:
				// Add variable assignments here
				break;
		}
	}
}